//
//  LgVC.m
//  New
//
//  Created by 才诗琦 on 16/1/25.
//  Copyright © 2016年 www.lanou3g.com. All rights reserved.
//

#import "LgVC.h"

@interface LgVC ()<UITextFieldDelegate>

@end

@implementation LgVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor cyanColor];
    
       
    
//    UITextField *user = [[UITextField alloc] initWithFrame:CGRectMake(30, 100, 160, 40)];
//    user.center = CGPointMake(self.view.center.x, user.center.y) ;
////    LTView *user = [[LTView alloc] initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 100)];
//    
//    user.textAlignment = NSTextAlignmentLeft;
////    user.text = @"用户名";
//    user.placeholder = @"邮箱账号/手机号";
//    
//    user.tag = 1000;
//    user.delegate = self;
//    
//    user.returnKeyType = UIReturnKeyNext;
//    user.clearsOnBeginEditing = YES;
//    user.clearButtonMode = UITextFieldViewModeAlways;
//    user.borderStyle = UITextBorderStyleRoundedRect;
//    [self.view addSubview:user];
//    [user release];
//   UITextField *pass = [[UITextField alloc] initWithFrame:CGRectMake(30, 150, 160, 40)];
//    
//    pass.center = CGPointMake(self.view.center.x, pass.center.y) ;
////    pass.text = @"密码";
//    pass.textAlignment = NSTextAlignmentLeft;
//    pass.placeholder = @"密码";
//    
//    pass.tag = 2000;
//    pass.delegate = self;
//    
//    pass.secureTextEntry = YES;
//    pass.clearButtonMode = UITextFieldViewModeAlways;
//    pass.clearsOnBeginEditing = YES;
//    pass.borderStyle = UITextBorderStyleRoundedRect;
//    pass.returnKeyType = UIReturnKeyNext;
//    [self.view addSubview:pass];
//    [pass release];
//    
//    
//    
//    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
//    [button setTitle:@"登录" forState:UIControlStateNormal];
//    button.frame = CGRectMake(30, 200, 100, 40);
//    button.center = CGPointMake(self.view.center.x, button.center.y);
//    [button setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
//    
//    [button addTarget:self action:@selector(buttonClick:) forControlEvents:UIControlEventTouchUpInside];
//    [self.view addSubview:button];
    
    
    
}
//- (BOOL)textFieldShouldReturn:(UITextField *)textField
//{
//    if (textField.tag == 1000) {
//        [textField resignFirstResponder];
//        [[self.view viewWithTag:2000] becomeFirstResponder];
//        
//    }
//   
//    else{[textField resignFirstResponder];
//    }
//    return YES;
//}
//
//
//- (void)buttonClick:(UIButton *)bu
//{
//    [self dismissViewControllerAnimated:YES completion:^{
//        
//    }];
//}

//- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
//{
//    if (textField.tag == 2000 ) {
//        self.view.center = CGPointMake(self.view.center.x,  self.view.center.y - 250);
//    }
//    return YES;
//}
//
//- (BOOL)textFieldShouldEndEditing:(UITextField *)textField
//{
//    if (textField.tag == 2000 )  {
//        self.view.center = CGPointMake(self.view.center.x, self.view.center.y + 250);
//    }
//    return YES;
//}
//

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
